package com.webase.service;

import java.util.List;

import com.webase.model.Menu;
import com.webase.model.Role;
import com.webase.repository.dao.RoleDao;

public class RoleService {
	RoleDao roleDao = null;

	
	/**
	 * @return the roleDao
	 */
	public RoleDao getRoleDao() {
		return roleDao;
	}


	/**
	 * @param roleDao the roleDao to set
	 */
	public void setRoleDao(RoleDao roleDao) {
		this.roleDao = roleDao;
	}


	@SuppressWarnings("unchecked")
	public List<Role> list() {
		return (List<Role>) roleDao.list();
	}
}
